package com.bjx.flow.mmx.service;


import com.bjx.flow.mmx.domain.entity.MmxFlowInstanceEntity;

import java.util.Map;

/**
 * @desc: 运行服务
 * @author: liushuai
 * @date: 2023/5/22 11:12
 */
public interface MmxRuntimeService {

    /**
     * 根据流程定义Key启动流程
     * @param definitionKey 流程定义Key
     * @param businessId 业务Id
     * @param variables 流程变量
     * @param instanceName 流程实例名称，非必填默认 flow
     * @param ext1 扩展查询,非必填
     * @param ext2 扩展查询
     * @param ext3 扩展查询
     * @param createUser
     * @param comment
     * @return: com.mmx.domain.entity.FlowInstance
     * @Author: liushuai
     * @Date: 2023/2/8 14:57
     */
    MmxFlowInstanceEntity startFlowByDefinitionKey(String definitionKey, String businessId, Map<String, Object> variables, String instanceName, String createUser, String comment, String ext1, String ext2, String ext3);
}
